package com.bigdata.demo.service.impl;

import com.bigdata.demo.entity.User;
import com.bigdata.demo.service.TokenService;
import org.springframework.stereotype.Service;

import java.util.Date;


@Service
public class TokenServiceImpl implements TokenService {

    @Override
    public String getToken(User user, Date date) {
//         String token= JWT.create()
//                .withAudience(String.valueOf(user.getUsername()))
//                .withExpiresAt(date) //过期时间配置
//                .sign(JCEMapper.Algorithm.HMAC256(user.getPassword()));
//        return token;
        return "token";
    }
}
